from rest_framework import serializers


class ProjectsCountItemSerializer(serializers.Serializer):
    day = serializers.DateField()
    project_type = serializers.CharField(allow_blank=True)
    project_count = serializers.IntegerField()


class AmountBucketItemSerializer(serializers.Serializer):
    bucket = serializers.CharField()
    count = serializers.IntegerField()
    sum = serializers.FloatField()


class CompanyWinRateItemSerializer(serializers.Serializer):
    company_id = serializers.IntegerField()
    company_name = serializers.CharField(allow_blank=True)
    bid_count = serializers.IntegerField()
    win_count = serializers.IntegerField()
    win_rate = serializers.FloatField()


class IndustryHHIItemSerializer(serializers.Serializer):
    industry = serializers.CharField(allow_blank=True)
    hhi = serializers.FloatField()
    top_share = serializers.FloatField()
